package chapter08;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

public class Java07_IO_Exception {
    public static void main(String[] args) {
        // TODO Java - IO

        // FileNotFoundException
        // FileInputStream in = new FileInputStream("xxx");
        FileInputStream in = null;

        // ClassNotFoundException,writeFatalException
        ObjectInputStream objIn = null;
        ObjectOutputStream objOut = null;

        try {
            in = new FileInputStream("xxx");

            in.read();
//            objOut.writeObject();
            objIn.readObject();
        } catch (Exception e) {

        } finally {
            if (in != null) {
                try {
                    in.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        }

    }

}
